ITS#8554 kFreeBSD is like BSD
authorHoward Chu <hyc@openldap.org>
Wed, 28 Dec 2016 18:32:14 +0000 (18:32 +0000)
committerRyan Tandy <ryan@nardis.ca>
Mon, 2 Jan 2017 03:47:36 +0000 (03:47 +0000)
Doesn't have POSIX robust mutexes - GNU userland on BSD kernel

Gbp-Pq: Name ITS-8554-kFreeBSD-is-like-BSD.patch

libraries/liblmdb/mdb.c

index d2e81e4e9c541569279bddcee5d97c9a9ef24fb1..629680a83866fe88585d51ef380ff2fa4600c592 100644 (file)
@@ -115,7 +115,7 @@ typedef SSIZE_T     ssize_t;
 #include <resolv.h>    /* defines BYTE_ORDER on HPUX and Solaris */
 #endif
 
-#if defined(__APPLE__) || defined (BSD)
+#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
 # define MDB_USE_POSIX_SEM     1
 # define MDB_FDATASYNC         fsync
 #elif defined(ANDROID)